package app.k.com.jiecaoapp.fragment;

import android.support.v4.app.Fragment;
import android.view.View;

/**
 * Created by mac_wk on 15-1-7.
 */
public abstract class  BaseFragment extends Fragment {
    protected View rootView;
    protected View findViewById(int id)
    {
        return rootView.findViewById(id);
    }
    protected BaseClick baseClick;
    public BaseFragment(){
        baseClick = new BaseClick();
    }

    protected class BaseClick implements View.OnClickListener{
        @Override
        public void onClick(View v) {
            onClickView(v);
        }
    }
    protected abstract void onClickView(View view);
}
